<?php
include("config.php");
require_once("auth.php");
$id=$_POST['id'];
$cname=$_POST['txtCustomerName'];
$add=$_POST['textAdd'];
$ph=$_POST['txtPhone'];
$email=$_POST['txtEmail'];


 $data=mysql_query("update customers set name='$cname',address='$add',phone='$ph',email='$email' where serial=$id");

if($data)
{
header("location: displaycustomers.php?updated=updated");
}
else
{
echo mysql_error();
}
?>